//
//  ATVObjectPropertyViewController.m
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 8/6/12.
//  Copyright 2012 Molamil. All rights reserved.
//

#import "ATVObjectPropertyViewController.h"
#import "ATVInstanceObjectProperty.h"

@implementation ATVObjectPropertyViewController
@synthesize titleLabel;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

- (void) drawFromModel:(ATVInstanceObjectProperty*) model {
    [titleLabel setStringValue: model.name];
}

- (IBAction)inspectButtonMessage:(id)sender {
    NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: self.path, @"path", nil];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"requestTypeDef" object:dict];
}

@end
